package com.yunc.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.shop.entity.ShopCart;
import com.yunc.modules.shop.entity.dto.ShopCartDTO;
import com.yunc.modules.shop.mapper.ShopCartMapper;
import com.yunc.modules.shop.service.IShopCartService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 购物车表
 *
 * @author congcong tao
 * @create 2018/12/23 10:16 PM
 */
@Service("shopCartService")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ShopCartServiceImpl extends ServiceImpl<ShopCartMapper, ShopCart> implements IShopCartService {

    private final ShopCartMapper shopCartMapper;

    @Override
    public List<ShopCartDTO> pageInfo(Page<ShopCart> page, ShopCart cart) {
        return shopCartMapper.pageInfo(page, cart);
    }
}
